import {setServer} from "@/utils/axios";
const request = setServer('');

// 导出保活设备列表
export function exportDeviceList(type){
  return request({
    url:'/biotope/keepalive/download',
    method: 'post',
    responseType:type
  })
}

// 小区保活
export function biotopeAlive(data){
  return request({
    url:'/biotope/keepalive/',
    method: 'post',
    params: data,
  })
}

// 设备保活
export function deviceAlive(data){
  return request({
    url:'/biotope/keepalive/device',
    method: 'post',
    params: data,
  })
}

// 点位保活
export function pointAlive(data){
  return request({
    url:'/biotope/keepalive/device/point',
    method: 'post',
    params: data,
  })
}

// 基础数据保活
export function baseAlive(data){
  return request({
    url:'/biotope/keepalive/device/base-data',
    method: 'post',
    params: data,
  })
}

// 设备点位保活
export function devicePointAlive(data){
  return request({
    url:'/biotope/keepalive/device/point-biotope',
    method: 'post',
    params: data,
  })
}

// 事件保活
export function eventAlive(data){
  return request({
    url:'/biotope/keepalive/event',
    method: 'post',
    params: data,
  })
}
